package com.libc.yygh.common.exception;

/**
 * @fileRelativePath: BusinessException.java
 * @Date: Created on 2022/3/13  18:40  <br>
 * @author: LiBencheng<br>
 * @version: 1.0<br>
 */
public class BusinessException extends RuntimeException
{
    private String code = "-1";

    public BusinessException(String message)
    {
        super(message);
    }

    public BusinessException(String code, String message)
    {
        super(message);
        this.code = code;
    }

    public String getCode( )
    {
        return this.code;
    }
}
